<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <title>控制后台</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="Expires" content="0">
  <meta http-equiv="Pragma" content="no-cache">
  <meta http-equiv="Cache-control" content="no-cache,no-store,must-revalidate">
  <meta http-equiv="Cache" content="no-cache">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="../../component/pear/css/pear-notable.css" />
  <link rel="stylesheet" href="../../admin/css/other/console1.css" />
  <link rel="stylesheet" href="/common/badge.min.css">
  <link rel="stylesheet" href="css/usm-cd-statistics.css" />
  <style>
    .dtree-scroll {
      /* height: calc(100vh - 5px)!important; */
      /* height: 100vh!important; */
      height: 200px !important;
      text-align: left;
      overflow: auto;
    }

    .select-date-wrapper {
      height: 100% !important;
    }

    .layui-table-body .layui-none {
      padding: 10px 15px;
    }


  </style>
</head>

<body>
  <div class="pear-container">
    <!-- 选项 -->
    <div class="layui-row layui-col-space10">
      <div class="layui-col-xs12">
        <div class="layui-collapse">
          <div class="layui-colla-item">
            <h2 class="layui-colla-title" id="selectCardHeader">选项</h2>
            <div class="layui-colla-content layui-show">
              <div class="layui-row layui-col-space10">
                <div class="layui-col-xs6">
                  <div class="layui-card top-panel">
                    <div class="layui-card-header">选择机台</div>
                    <div class="layui-card-body dtree-scroll" id="dtree-scroll-wrapper">
                      <ul id="demoTree" class="dtree" data-id="0"></ul>
                    </div>
                  </div>
                </div>
                <div class="layui-col-xs6">
                  <div class="layui-card top-panel" style="height: 263px;">
                    <div class="layui-card-body select-date-wrapper">
                      <label class="layui-form-label" style="text-align: center;">选择日期</label>
                      <div class="layui-input-block">
                        <input id="selectDate" class="layui-input" type="text" autocomplete="off" placeholder="选择日期范围">
                      </div>

                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <!-- 数据 -->
    <div class="layui-row layui-col-space10" id="tableView">
    </div>
  </div>

  <script src="../../component/layui/layui.js"></script>
  <script src="../../component/pear/pear.js"></script>
  <script src="../../lay-ext/dayjs.min.js"></script>

  <script>
    // 加载自定义模块,检查浏览器和token
    layui.extend({
      myheader: "{/}/lay-ext/myheader",
    });
    layui.use(['layer', 'echarts', 'element', 'count', 'dtree', 'myheader', 'popup', 'laydate', 'table'], function () {
      var $ = layui.jquery,
        layer = layui.layer,
        element = layui.element,
        count = layui.count,
        echarts = layui.echarts,
        dtree = layui.dtree,
        myheader = layui.myheader,
        popup = layui.popup,
        laydate = layui.laydate,
        table = layui.table
      laytpl = layui.laytpl;

      // 定义全局 ajax的请求头
      myheader.ajaxGlobal(myheader.checkToken().tokenValue);
      // 定义常量
      const baseUrl = myheader.baseUrl();

      // 定义默认值
      // 默认日期为今天
      var selectedDate= dayjs().format("YYYY-MM-DD") +' ~ ' +dayjs().format("YYYY-MM-DD")
      var selectedMachineNo = ""

      // 渲染并获树的实例
      const demoTree = dtree.render({
        elem: "#demoTree",
        initLevel: "1",
        width: "100%",
        scroll: "#dtree-scroll-wrapper",
        method: 'get',
        url: baseUrl + "/machineOgztionDTree/find4UsmCd?_t=" + new Date().getTime(),
      });
      //dtree事件 node(节点)
      dtree.on("node('demoTree')", function (obj) {
        if (!obj.param.leaf) {
          demoTree.clickSpread(obj.dom); //调用内置函数展开节点
        } else {
          selectedMachineNo = obj.param.context
          getUsmBtStatisticsData(selectedMachineNo, selectedDate)
        }
      })
      // 日期事件
      laydate.render({
        elem: '#selectDate' //指定元素
        ,value: selectedDate
        ,range:'~'
        ,done: function (value) {
          selectedDate = value
          getUsmBtStatisticsData(selectedMachineNo, selectedDate)
        }
      });

      function getUsmBtStatisticsData(selectedMachineNo, selectedDate) {


        if (selectedMachineNo == '' || selectedDate == '') return
        $.ajax(baseUrl + "/usmCdRecord/getRecord", {
          type: 'get',
          timeout: 10000,
          data: {
            selectedMachineNo: selectedMachineNo,
            selectedDate: selectedDate
          },
          success: function (res) {
            if (res.data == null) {
              document.getElementById("tableView").innerHTML = ''
              return
            }
            renderDataView(res.data)
          }
        })
      }

      function renderDataView(data) {
        var tplHtml = document.getElementById("tableTpl").innerHTML
        var tplViewObj = document.getElementById("tableView")
        laytpl(tplHtml).render(data, function (html) {
          tplViewObj.innerHTML = html
        })
      }

    })
  </script>

  <script id="tableTpl" type="text/html">
    {{# layui.each(d,function(index,item){ }}
    {{# console.log(item) }}
    {{# let ng1Total=0 }}
    {{# ng1Total=item.usmCdRecord.ngWtcCount1+item.usmCdRecord.ngCmCount1+item.usmCdRecord.ngC2Count1+item.usmCdRecord.ngC3Count1+item.usmCdRecord.ngC4Count1+item.usmCdRecord.ngC5Count1+item.usmCdRecord.ngWgCount1+item.usmCdRecord.ngJxCount1;}}
    {{# let ng2Total=0 }}
    {{# ng2Total=item.usmCdRecord.ngWtcCount2+item.usmCdRecord.ngCmCount2+item.usmCdRecord.ngC2Count2+item.usmCdRecord.ngC3Count2+item.usmCdRecord.ngC4Count2+item.usmCdRecord.ngC5Count2+item.usmCdRecord.ngWgCount2+item.usmCdRecord.ngJxCount2;}}
    {{# let ng3Total=0 }}
    {{# ng3Total=item.usmCdRecord.ngWtcCount3+item.usmCdRecord.ngCmCount3+item.usmCdRecord.ngC2Count3+item.usmCdRecord.ngC3Count3+item.usmCdRecord.ngC4Count3+item.usmCdRecord.ngC5Count3+item.usmCdRecord.ngWgCount3+item.usmCdRecord.ngJxCount3;}}
    {{# let ng4Total=0 }}
    {{# ng4Total=item.usmCdRecord.ngWtcCount4+item.usmCdRecord.ngCmCount4+item.usmCdRecord.ngC2Count4+item.usmCdRecord.ngC3Count4+item.usmCdRecord.ngC4Count4+item.usmCdRecord.ngC5Count4+item.usmCdRecord.ngWgCount4+item.usmCdRecord.ngJxCount4;}}
    {{# let okTotal = item.usmCdRecord.okCount1+item.usmCdRecord.okCount2+item.usmCdRecord.okCount3+item.usmCdRecord.okCount4 }}
    {{# let ngTotal = (ng1Total+ng2Total+ng3Total+ng4Total) }}
    {{# let ngPct=((okTotal+ngTotal)==0)?'0%':((ngTotal/(okTotal+ngTotal)*100).toFixed(3)+'%') }}
    {{# let ngWtcPct1=((item.usmCdRecord.okCount1+ng1Total)==0)?'0%': ((item.usmCdRecord.ngWtcCount1/(item.usmCdRecord.okCount1+ng1Total))*100).toFixed(3)+'%'}}
    {{# let ngWtcPct2=((item.usmCdRecord.okCount2+ng2Total)==0)?'0%': ((item.usmCdRecord.ngWtcCount2/(item.usmCdRecord.okCount2+ng2Total))*100).toFixed(3)+'%'}}
    {{# let ngWtcPct3=((item.usmCdRecord.okCount3+ng3Total)==0)?'0%': ((item.usmCdRecord.ngWtcCount3/(item.usmCdRecord.okCount3+ng3Total))*100).toFixed(3)+'%'}}
    {{# let ngWtcPct4=((item.usmCdRecord.okCount4+ng4Total)==0)?'0%': ((item.usmCdRecord.ngWtcCount4/(item.usmCdRecord.okCount4+ng4Total))*100).toFixed(3)+'%'}}
    {{# let ngWtcTotal= item.usmCdRecord.ngWtcCount1+item.usmCdRecord.ngWtcCount2+item.usmCdRecord.ngWtcCount3+item.usmCdRecord.ngWtcCount4 }}
    {{# let ngWtcTotalPct = ((okTotal+ngTotal)==0)?'0%':((ngWtcTotal/(okTotal+ngTotal)*100).toFixed(3)+'%') }}

    {{# let ngCmPct1=((item.usmCdRecord.okCount1+ng1Total)==0)?'0%': ((item.usmCdRecord.ngCmCount1/(item.usmCdRecord.okCount1+ng1Total))*100).toFixed(3)+'%'}}
    {{# let ngCmPct2=((item.usmCdRecord.okCount2+ng2Total)==0)?'0%': ((item.usmCdRecord.ngCmCount2/(item.usmCdRecord.okCount2+ng2Total))*100).toFixed(3)+'%'}}
    {{# let ngCmPct3=((item.usmCdRecord.okCount3+ng3Total)==0)?'0%': ((item.usmCdRecord.ngCmCount3/(item.usmCdRecord.okCount3+ng3Total))*100).toFixed(3)+'%'}}
    {{# let ngCmPct4=((item.usmCdRecord.okCount4+ng4Total)==0)?'0%': ((item.usmCdRecord.ngCmCount4/(item.usmCdRecord.okCount4+ng4Total))*100).toFixed(3)+'%'}}
    {{# let ngCmTotal= item.usmCdRecord.ngCmCount1+item.usmCdRecord.ngCmCount2+item.usmCdRecord.ngCmCount3+item.usmCdRecord.ngCmCount4 }}
    {{# let ngCmTotalPct = ((okTotal+ngTotal)==0)?'0%':((ngCmTotal/(okTotal+ngTotal)*100).toFixed(3)+'%') }}

    {{# let ngC2Pct1=((item.usmCdRecord.okCount1+ng1Total)==0)?'0%': ((item.usmCdRecord.ngC2Count1/(item.usmCdRecord.okCount1+ng1Total))*100).toFixed(3)+'%'}}
    {{# let ngC2Pct2=((item.usmCdRecord.okCount2+ng2Total)==0)?'0%': ((item.usmCdRecord.ngC2Count2/(item.usmCdRecord.okCount2+ng2Total))*100).toFixed(3)+'%'}}
    {{# let ngC2Pct3=((item.usmCdRecord.okCount3+ng3Total)==0)?'0%': ((item.usmCdRecord.ngC2Count3/(item.usmCdRecord.okCount3+ng3Total))*100).toFixed(3)+'%'}}
    {{# let ngC2Pct4=((item.usmCdRecord.okCount4+ng4Total)==0)?'0%': ((item.usmCdRecord.ngC2Count4/(item.usmCdRecord.okCount4+ng4Total))*100).toFixed(3)+'%'}}
    {{# let ngC2Total= item.usmCdRecord.ngC2Count1+item.usmCdRecord.ngC2Count2+item.usmCdRecord.ngC2Count3+item.usmCdRecord.ngC2Count4 }}
    {{# let ngC2TotalPct = ((okTotal+ngTotal)==0)?'0%':((ngC2Total/(okTotal+ngTotal)*100).toFixed(3)+'%') }}

    {{# let ngC3Pct1=((item.usmCdRecord.okCount1+ng1Total)==0)?'0%': ((item.usmCdRecord.ngC3Count1/(item.usmCdRecord.okCount1+ng1Total))*100).toFixed(3)+'%'}}
    {{# let ngC3Pct2=((item.usmCdRecord.okCount2+ng2Total)==0)?'0%': ((item.usmCdRecord.ngC3Count2/(item.usmCdRecord.okCount2+ng2Total))*100).toFixed(3)+'%'}}
    {{# let ngC3Pct3=((item.usmCdRecord.okCount3+ng3Total)==0)?'0%': ((item.usmCdRecord.ngC3Count3/(item.usmCdRecord.okCount3+ng3Total))*100).toFixed(3)+'%'}}
    {{# let ngC3Pct4=((item.usmCdRecord.okCount4+ng4Total)==0)?'0%': ((item.usmCdRecord.ngC3Count4/(item.usmCdRecord.okCount4+ng4Total))*100).toFixed(3)+'%'}}
    {{# let ngC3Total= item.usmCdRecord.ngC3Count1+item.usmCdRecord.ngC3Count2+item.usmCdRecord.ngC3Count3+item.usmCdRecord.ngC3Count4 }}
    {{# let ngC3TotalPct = ((okTotal+ngTotal)==0)?'0%':((ngC3Total/(okTotal+ngTotal)*100).toFixed(3)+'%') }}


    {{# let ngC4Pct1=((item.usmCdRecord.okCount1+ng1Total)==0)?'0%': ((item.usmCdRecord.ngC4Count1/(item.usmCdRecord.okCount1+ng1Total))*100).toFixed(3)+'%'}}
    {{# let ngC4Pct2=((item.usmCdRecord.okCount2+ng2Total)==0)?'0%': ((item.usmCdRecord.ngC4Count2/(item.usmCdRecord.okCount2+ng2Total))*100).toFixed(3)+'%'}}
    {{# let ngC4Pct3=((item.usmCdRecord.okCount3+ng3Total)==0)?'0%': ((item.usmCdRecord.ngC4Count3/(item.usmCdRecord.okCount3+ng3Total))*100).toFixed(3)+'%'}}
    {{# let ngC4Pct4=((item.usmCdRecord.okCount4+ng4Total)==0)?'0%': ((item.usmCdRecord.ngC4Count4/(item.usmCdRecord.okCount4+ng4Total))*100).toFixed(3)+'%'}}
    {{# let ngC4Total= item.usmCdRecord.ngC4Count1+item.usmCdRecord.ngC4Count2+item.usmCdRecord.ngC4Count3+item.usmCdRecord.ngC4Count4 }}
    {{# let ngC4TotalPct = ((okTotal+ngTotal)==0)?'0%':((ngC4Total/(okTotal+ngTotal)*100).toFixed(3)+'%') }}

    {{# let ngC5Pct1=((item.usmCdRecord.okCount1+ng1Total)==0)?'0%': ((item.usmCdRecord.ngC5Count1/(item.usmCdRecord.okCount1+ng1Total))*100).toFixed(3)+'%'}}
    {{# let ngC5Pct2=((item.usmCdRecord.okCount2+ng2Total)==0)?'0%': ((item.usmCdRecord.ngC5Count2/(item.usmCdRecord.okCount2+ng2Total))*100).toFixed(3)+'%'}}
    {{# let ngC5Pct3=((item.usmCdRecord.okCount3+ng3Total)==0)?'0%': ((item.usmCdRecord.ngC5Count3/(item.usmCdRecord.okCount3+ng3Total))*100).toFixed(3)+'%'}}
    {{# let ngC5Pct4=((item.usmCdRecord.okCount4+ng4Total)==0)?'0%': ((item.usmCdRecord.ngC5Count4/(item.usmCdRecord.okCount4+ng4Total))*100).toFixed(3)+'%'}}
    {{# let ngC5Total= item.usmCdRecord.ngC5Count1+item.usmCdRecord.ngC5Count2+item.usmCdRecord.ngC5Count3+item.usmCdRecord.ngC5Count4 }}
    {{# let ngC5TotalPct = ((okTotal+ngTotal)==0)?'0%':((ngC5Total/(okTotal+ngTotal)*100).toFixed(3)+'%') }}

    {{# let jxZZPct = ((item.usmCdRecord.jxVZNGCount+item.usmCdRecord.jxZZNGCount+item.usmCdRecord.jxIRNGCount+item.usmCdRecord.jxOKCount)==0)?'0%':((item.usmCdRecord.jxZZNGCount/(item.usmCdRecord.jxVZNGCount+item.usmCdRecord.jxZZNGCount+item.usmCdRecord.jxIRNGCount+item.usmCdRecord.jxOKCount))*100).toFixed(0)+'%'}}

    {{# let ngWgPct1=((item.usmCdRecord.okCount1+ng1Total)==0)?'0%': ((item.usmCdRecord.ngWgCount1/(item.usmCdRecord.okCount1+ng1Total))*100).toFixed(3)+'%'}}
    {{# let ngWgPct2=((item.usmCdRecord.okCount2+ng2Total)==0)?'0%': ((item.usmCdRecord.ngWgCount2/(item.usmCdRecord.okCount2+ng2Total))*100).toFixed(3)+'%'}}
    {{# let ngWgPct3=((item.usmCdRecord.okCount3+ng3Total)==0)?'0%': ((item.usmCdRecord.ngWgCount3/(item.usmCdRecord.okCount3+ng3Total))*100).toFixed(3)+'%'}}
    {{# let ngWgPct4=((item.usmCdRecord.okCount4+ng4Total)==0)?'0%': ((item.usmCdRecord.ngWgCount4/(item.usmCdRecord.okCount4+ng4Total))*100).toFixed(3)+'%'}}
    {{# let ngWgTotal= item.usmCdRecord.ngWgCount1+item.usmCdRecord.ngWgCount2+item.usmCdRecord.ngWgCount3+item.usmCdRecord.ngWgCount4 }}
    {{# let ngWgTotalPct = ((okTotal+ngTotal)==0)?'0%':((ngWgTotal/(okTotal+ngTotal)*100).toFixed(3)+'%') }}

    {{# let ngJxTotal= item.usmCdRecord.ngJxCount1+item.usmCdRecord.ngJxCount2+item.usmCdRecord.ngJxCount3+item.usmCdRecord.ngJxCount4 }}
    {{# let ngJxTotalPct = ((okTotal+ngTotal)==0)?'0%':((ngJxTotal/(okTotal+ngTotal)*100).toFixed(3)+'%') }}

    <div class="layui-col-md12">
      <div class="layui-panel" style="display:flex;justify-content: center;align-items: center; padding:25px 0">
        <div id="tmp_20760" align="center">

          <table border="0" cellpadding="0" cellspacing="0" width="851" style="border-collapse:
           collapse;table-layout:fixed;width:643pt">
            <col class="xl6420760" width="72" style="width:54pt">
            <col class="xl6520760" width="41" span="19" style="width:31pt">
            <tr height="21" style="height:15.95pt">
              <td height="21" class="xl6720760" style="height:15.95pt;">日期</td>
              <td colspan="19" class="xl15320760" style="border-right:1.0pt solid black">
                {{= item.usmCdRecord.recordTimeDT}}</td>
            </tr>
            <tr height="21" style="height:15.95pt">
              <td height="21" class="xl6620760" width="72" style="height:15.95pt;width:54pt">LOTNo</td>
              <td colspan="12" class="xl6620760" width="492" style="border-right:1.0pt solid black;width:372pt">
                {{= item.usmCdRecord.lotNo }}</td>
              <td colspan="4" class="xl8520760" width="164"
                style="border-right:.5pt solid black; border-left:none;width:124pt">
                {{='组立机台No:' + item.usmCdRecord.zlMachineNo}}</td>
              <td colspan="3" class="xl15020760" width="123" item
                style="border-right:1.0pt solid black; border-left:none;width:93pt">
                {{='半田机台No:' + item.usmCdRecord.btMachineNo}}</td>
            </tr>
            <tr height="21" style="height:15.95pt">
              <td height="21" class="xl6720760" style="height:15.95pt;border-top:none">形名</td>
              <td colspan="19" class="xl15320760" style="border-right:1.0pt solid black">
                {{= item.usmCdRecord.productCode}}</td>
            </tr>
            <tr height="21" style="height:15.95pt">
              <td height="21" class="xl6720760" style="height:15.95pt;border-top:none">良品</td>
              <td colspan="19" class="xl15420760" style="border-right:1.0pt solid black">
                {{= okTotal}}
              </td>
            </tr>
            <tr height="21" style="height:15.95pt">
              <td height="21" class="xl6820760" width="72" style="height:15.95pt;border-top:none;
            width:54pt">不良合计</td>
              <td colspan="10" class="xl9720760" style="text-align:center;">{{= ngTotal }}</td>
              <td colspan="2" class="xl9720760" style="border-right:.5pt solid black;border-left:none">PCS</td>
              <td colspan="7" class="xl9920760" style="border-right:1.0pt solid black; border-left:none;text-align:center;">{{= ngPct}}</td>
            </tr>
            <tr height="21" style="height:15.95pt">
              <td height="21" class="xl6720760" style="height:15.95pt;border-top:none">列</td>
              <td colspan="6" class="xl6720760" style="border-right:.5pt solid black">1列</td>
              <td colspan="6" class="xl16020760" style="border-left:none">2列</td>
              <td colspan="4" class="xl11820760">3列</td>
              <td colspan="3" class="xl11820760" style="border-right:1.0pt solid black; border-left:none">4列</td>
            </tr>
            <tr height="21" style="height:15.95pt">
              <td rowspan="3" height="63" class="xl11520760" style="height:47.85pt;border-top:none">每列良品</td>
              <td colspan="6" rowspan="3" class="xl14020760" style="border-right:.5pt solid black;text-align:center;">{{= item.usmCdRecord.okCount1}}</td>
              <td colspan="6" rowspan="3" class="xl14020760" style="border-right:.5pt solid black;text-align:center;">{{= item.usmCdRecord.okCount2}}</td>
              <td colspan="4" rowspan="3" class="xl14620760" style="text-align:center;">{{= item.usmCdRecord.okCount3}}</td>
              <td colspan="3" rowspan="3" class="xl14620760" style="border-right:1.0pt solid black;text-align:center;">{{= item.usmCdRecord.okCount4}}</td>
            </tr>
            <tr height="21" style="height:15.95pt">
            </tr>
            <tr height="21" style="height:15.95pt">
            </tr>
            <tr height="21" style="height:15.95pt">
              <td height="21" class="xl6920760" style="height:15.95pt">GO</td>
              <td colspan="6" class="xl10520760" style="border-left:none;text-align:center;">{{= item.usmCdRecord.goWtcCount1}}</td>
              <td colspan="6" class="xl10520760" style="border-left:none;text-align:center;">{{= item.usmCdRecord.goWtcCount2}}</td>
              <td colspan="4" class="xl10520760" style="border-left:none;text-align:center;">{{= item.usmCdRecord.goWtcCount3}}</td>
              <td colspan="3" class="xl10520760" style="border-right:1.0pt solid black; border-left:none;text-align:center;">{{= item.usmCdRecord.goWtcCount4}}</td>
            </tr>
            <tr height="21" style="height:15.95pt">
              <td rowspan="3" height="63" class="xl13420760" width="72"
                style="height:47.85pt;   border-top:none;width:54pt">未充填<br>检查机</td>
              <td colspan="6" class="xl10920760" style="border-left:none;text-align:center;">{{= item.usmCdRecord.ngWtcCount1}}</td>
              <td colspan="6" class="xl10920760" style="border-left:none;text-align:center;">{{= item.usmCdRecord.ngWtcCount2}}</td>
              <td colspan="4" class="xl10920760" style="border-left:none;text-align:center;">{{= item.usmCdRecord.ngWtcCount3}}</td>
              <td colspan="3" class="xl10920760" style="border-right:1.0pt solid black; border-left:none;text-align:center;">{{= item.usmCdRecord.ngWtcCount4}}</td>
            </tr>
            <tr height="21" style="height:15.95pt">
              <td colspan="6" height="21" class="xl10920760" style="height:15.95pt;border-left:none;text-align:center;">{{= ngWtcPct1}}</td>
              <td colspan="6" class="xl10920760" style="border-left:none;text-align:center;">{{= ngWtcPct2}}</td>
              <td colspan="4" class="xl10920760" style="border-left:none;text-align:center;">{{= ngWtcPct3}}</td>
              <td colspan="3" class="xl10920760" style="border-right:1.0pt solid black; border-left:none;text-align:center;">{{= ngWtcPct4}}</td>

            </tr>
            <tr height="21" style="height:15.95pt">
              <td colspan="12" height="21" class="xl11120760" style="height:15.95pt;text-align:center;">{{= ngWtcTotal + '   PCS'}}</td>
              <td colspan="7" class="xl13720760" style="border-right:1.0pt solid black;text-align:center;">{{=ngWtcTotalPct}}</td>
            </tr>
            <!-- <tr height="21" style="height:15.95pt">
              <td height="21" class="xl6920760" style="height:15.95pt">GO</td>
              <td colspan="6" class="xl10520760" style="border-left:none;text-align:center;">{{= item.usmCdRecord.goCmCount1}}</td>
              <td colspan="6" class="xl10520760" style="border-left:none;text-align:center;">{{= item.usmCdRecord.goCmCount2}}</td>
              <td colspan="4" class="xl10520760" style="border-left:none;text-align:center;">{{= item.usmCdRecord.goCmCount3}}</td>
              <td colspan="3" class="xl10520760" style="border-right:1.0pt solid black;border-left:none;text-align:center;">{{= item.usmCdRecord.goCmCount4}}</td>
            </tr> -->
            <tr height="21" style="height:15.95pt">
              <td rowspan="3" height="63" class="xl13420760" width="72"
                style="border-bottom:1.0pt solid black;height:47.85pt;border-top:1.0pt solid black;width:54pt">侧面<br>检查机</td>
              <td colspan="6" class="xl10920760" style="border-left:none;text-align:center;">{{= item.usmCdRecord.ngCmCount1}}</td>
              <td colspan="6" class="xl10920760" style="border-left:none;text-align:center;">{{= item.usmCdRecord.ngCmCount2}}</td>
              <td colspan="4" class="xl10920760" style="border-left:none;text-align:center;">{{= item.usmCdRecord.ngCmCount3}}</td>
              <td colspan="3" class="xl10920760" style="border-right:1.0pt solid black;border-left:none;text-align:center;">{{= item.usmCdRecord.ngCmCount4}}</td>
            </tr>
            <tr height="21" style="height:15.95pt">
              <td colspan="6" height="21" class="xl10920760" style="height:15.95pt;border-left:none;text-align:center;">{{= ngCmPct1}}</td>
              <td colspan="6" class="xl10920760" style="border-left:none;text-align:center;">{{= ngCmPct2}}</td>
              <td colspan="4" class="xl10920760" style="border-left:none;text-align:center;">{{= ngCmPct3}}</td>
              <td colspan="3" class="xl10920760" style="border-right:1.0pt solid black;border-left:none;text-align:center;">{{= ngCmPct4}}</td>
            </tr>
            <tr height="21" style="height:15.95pt">
              <td colspan="12" height="21" class="xl11320760" style="height:15.95pt;border-left:none;text-align:center;">{{= ngCmTotal + '   PCS'}}</td>
              <td colspan="7" class="xl11320760" style="border-right:1.0pt solid black; border-left:none;text-align:center;">{{=ngCmTotalPct}}</td>
            </tr>
            <!-- <tr height="21" style="height:15.95pt">
              <td height="21" class="xl7020760" style="height:15.95pt">GO</td>
              <td colspan="6" class="xl9020760" style="border-right:.5pt solid black;text-align:center;">{{= item.usmCdRecord.goC2Count1}}</td>
              <td colspan="6" class="xl9320760" style="border-left:none;text-align:center;">{{= item.usmCdRecord.goC2Count2}}</td>
              <td colspan="4" class="xl13220760" style="text-align:center;">{{= item.usmCdRecord.goC2Count2}}</td>
              <td colspan="3" class="xl13220760" style="border-right:1.0pt solid black;border-left:none;text-align:center;">{{= item.usmCdRecord.goC2Count2}}</td>
            </tr> -->
            <tr height="21" style="height:15.95pt">
              <td rowspan="3" height="63" class="xl7720760" style="border-bottom:1.0pt solid black;
            height:47.85pt">测2</td>
              <td colspan="6" class="xl9720760" style="border-right:.5pt solid black;text-align:center;">{{= item.usmCdRecord.ngC2Count1}}</td>
              <td colspan="6" class="xl9920760" style="border-left:none;text-align:center;">{{= item.usmCdRecord.ngC2Count2}}</td>
              <td colspan="4" class="xl10920760" style="text-align:center;">{{= item.usmCdRecord.ngC2Count3}}</td>
              <td colspan="3" class="xl10920760" style="border-right:1.0pt solid black;border-left:none;text-align:center;">{{= item.usmCdRecord.ngC2Count4}}</td>
            </tr>
            <tr height="21" style="height:15.95pt">
              <td colspan="6" height="21" class="xl9720760" style="border-right:.5pt solid black;height:15.95pt;text-align:center;">{{ngC2Pct1}}</td>
              <td colspan="6" class="xl9920760" style="border-left:none;text-align:center;">{{ngC2Pct2}}</td>
              <td colspan="4" class="xl10920760" style="text-align:center;">{{ngC2Pct3}}</td>
              <td colspan="3" class="xl10920760" style="border-right:1.0pt solid black;border-left:none;text-align:center;">{{ngC2Pct4}}</td>
            </tr>
            <tr height="21" style="height:15.95pt">
              <td colspan="12" height="21" class="xl11120760" style="height:15.95pt;text-align:center;">{{= ngC2Total+'   PCS'}}</td>
              <td colspan="7" class="xl11320760" style="border-right:1.0pt solid black;text-align:center;">{{= ngC2TotalPct}}</td>
            </tr>
            <!-- <tr height="21" style="height:15.95pt">
              <td height="21" class="xl7120760" style="height:15.95pt;border-top:none;">GO</td>
              <td colspan="6" class="xl10120760" style="border-right:.5pt solid black;text-align:center;">{{= item.usmCdRecord.goC3Count1}}</td>
              <td colspan="6" class="xl10420760" style="border-left:none;text-align:center;">{{= item.usmCdRecord.goC3Count2}}</td>
              <td colspan="4" class="xl10520760" style="text-align:center;">{{= item.usmCdRecord.goC3Count3}}</td>
              <td colspan="3" class="xl10520760" style="border-right:1.0pt solid black; border-left:none;text-align:center;">{{= item.usmCdRecord.goC3Count4}}</td>
            </tr> -->
            <tr height="21" style="height:15.95pt">
              <td rowspan="3" height="63" class="xl11520760" style="text-align:center;border-bottom:1.0pt solid black; height:47.85pt">测3</td>
              <td colspan="6" class="xl9720760" style="text-align:center;border-right:.5pt solid black;border-left:none">{{= item.usmCdRecord.ngC3Count1}}</td>
              <td colspan="6" class="xl9920760" style="text-align:center;border-left:none">{{= item.usmCdRecord.ngC3Count2}}</td>
              <td colspan="4" class="xl10920760" style="text-align:center;">{{= item.usmCdRecord.ngC3Count3}}</td>
              <td colspan="3" class="xl10920760" style="text-align:center;border-right:1.0pt solid black; border-left:none">{{= item.usmCdRecord.ngC3Count4}}</td>
            </tr>
            <tr height="21" style="height:15.95pt">
              <td colspan="6" height="21" class="xl9720760" style="text-align:center;border-right:.5pt solid black; height:15.95pt;border-left:none">{{= ngC3Pct1}}</td>
              <td colspan="6" class="xl9920760" style="text-align:center;border-left:none">{{= ngC3Pct2}}</td>
              <td colspan="4" class="xl10920760" style="text-align:center;">{{= ngC3Pct3}}</td>
              <td colspan="3" class="xl10920760" style="text-align:center;border-right:1.0pt solid black;      border-left:none">{{= ngC3Pct4}}</td>
            </tr>
            <tr height="21" style="height:15.95pt">
              <td colspan="12" height="21" class="xl11120760" style="height:15.95pt;border-left: none">{{= ngC3Total+'   PCS'}}</td>
              <td colspan="7" class="xl11320760" style="border-right:1.0pt solid black">{{=ngC3TotalPct}}</td>
            </tr>
            <!-- <tr height="21" style="height:15.95pt">
              <td height="21" class="xl7120760" style="height:15.95pt;border-top:none">GO</td>
              <td colspan="6" class="xl10120760" style="border-right:.5pt solid black;text-align:center;">{{= item.usmCdRecord.goC4Count1}}</td>
              <td colspan="6" class="xl10420760" style="border-left:none;text-align:center;">{{= item.usmCdRecord.goC4Count2}}</td>
              <td colspan="4" class="xl10520760" style="text-align:center;">{{= item.usmCdRecord.goC4Count3}}</td>
              <td colspan="3" class="xl10520760" style="border-right:1.0pt solid black; border-left:none;text-align:center;">{{= item.usmCdRecord.goC4Count4}}</td>
            </tr> -->
            <tr height="21" style="text-align:center;height:15.95pt">
              <td rowspan="3" height="63" class="xl11520760" style="border-bottom:1.0pt solid black;            height:47.85pt">测4</td>
              <td colspan="6" class="xl9720760" style="border-right:.5pt solid black;            border-left:none">{{= item.usmCdRecord.ngC4Count1}}</td>
              <td colspan="6" class="xl9920760" style="border-left:none">{{= item.usmCdRecord.ngC4Count2}}</td>
              <td colspan="4" class="xl10920760">{{= item.usmCdRecord.ngC4Count3}}</td>
              <td colspan="3" class="xl10920760" style="border-right:1.0pt solid black;border-left:none">{{= item.usmCdRecord.ngC4Count4}}</td>
            </tr>
            <tr height="21" style="text-align:center;height:15.95pt">
              <td colspan="6" height="21" class="xl9720760"   style="border-right:.5pt solid black;  height:15.95pt;border-left:none">{{=ngC4Pct1}}</td>
              <td colspan="6" class="xl9920760" style="border-left:none">{{=ngC4Pct2}}</td>
              <td colspan="4" class="xl10920760">{{=ngC4Pct3}}</td>
              <td colspan="3" class="xl10920760" style="border-right:1.0pt solid black;        border-left:none">{{=ngC4Pct4}}</td>
            </tr>
            <tr height="21" style="height:15.95pt">
              <td colspan="12" height="21" class="xl11120760" style="height:15.95pt;border-left:        none">{{= ngC4Total+ '   PCS'}}</td>
              <td colspan="7" class="xl11320760" style="border-right:1.0pt solid black">{{= ngC4TotalPct}}</td>
            </tr>
            <tr height="21" style="height:15.95pt">
              <td rowspan="4" height="84" class="xl7120760" style="border-right:1.0pt solid black;
            border-bottom:.5pt solid black;height:63.8pt;border-top:none"></td>
              <td colspan="12" class="xl8520760" style="border-right:.5pt solid black;
            border-left:none">测5解析结果( N=10 ) ※仅UDZS B计入</td>
              <td class="xl7220760" style="border-top:none;border-left:none"></td>
              <td class="xl7320760" style="border-top:none"></td>
              <td class="xl7420760" style="border-top:none"></td>
              <td class="xl7520760" style="border-top:none"></td>
              <td class="xl7520760" style="border-top:none"></td>
              <td class="xl7520760" colspan="2" style="border-right:1.0pt solid black">ZZ不良数</td>
            </tr>
            <tr height="21" style="height:15.95pt">
              <td colspan="4" height="21" class="xl12320760"
                style="border-right:.5pt solid black;height:15.95pt;border-left:none">良品</td>
              <td colspan="4" class="xl11920760" style="border-right:.5pt solid black;       border-left:none">VZ</td>
              <td colspan="4" class="xl11920760" style="border-left:none">ZZ</td>
              <td colspan="3" class="xl11820760">IR</td>
              <td colspan="2" class="xl11820760" style="border-left:none">ZZ不良率</td>
              <td colspan="2" class="xl11920760" style="border-right:1.0pt solid black;    border-left:none">(换算)</td>
            </tr>
            <tr height="21" style="height:15.95pt">
              <td colspan="4" rowspan="2" height="42" class="xl7720760"  style="border-right:.5pt solid black;        border-bottom:.5pt solid black;height:31.9pt">{{=item.usmCdRecord.jxOKCount}}</td>
              <td colspan="4" rowspan="2" class="xl12620760"   style="border-right:.5pt solid black;border-bottom:.5pt solid black">{{= item.usmCdRecord.jxVZNGCount}}</td>
              <td colspan="4" rowspan="2" class="xl12620760" style="border-bottom:.5pt solid black">{{= item.usmCdRecord.jxZZNGCount}}</td>
              <td colspan="3" rowspan="2" class="xl12720760">{{= item.usmCdRecord.jxIRNGCount}}</td>
              <td colspan="2" rowspan="2" class="xl11820760">{{= jxZZPct}}</td>
              <td colspan="2" rowspan="2" class="xl12120760" style="border-right:1.0pt solid black"></td>
            </tr>
            <tr height="21" style="height:15.95pt">
            </tr>
            <!-- <tr height="21" style="height:15.95pt">
              <td height="21" class="xl7720760" style="height:15.95pt;border-top:none">GO</td>
              <td colspan="6" class="xl9720760" style="text-align:center;border-right:.5pt solid black">{{= item.usmCdRecord.goC5Count1}}</td>
              <td colspan="6" class="xl9920760" style="text-align:center;border-left:none">{{= item.usmCdRecord.goC5Count2}}</td>
              <td colspan="4" class="xl10920760" style="text-align:center;">{{= item.usmCdRecord.goC5Count3}}</td>
              <td colspan="3" class="xl10920760" style="text-align:center;border-right:1.0pt solid black;border-left:none">{{= item.usmCdRecord.goC5Count4}}
              </td>
            </tr> -->
            <tr height="21" style="height:15.95pt">
              <td rowspan="3" height="63" class="xl11520760" style="border-bottom:1.0pt solid black;            height:47.85pt">测5</td>
              <td colspan="6" class="xl9720760" style="border-right:.5pt solid black;            border-left:none">{{= item.usmCdRecord.ngC5Count1}}</td>
              <td colspan="6" class="xl9920760" style="border-left:none">{{= item.usmCdRecord.ngC5Count2}}</td>
              <td colspan="4" class="xl10920760">{{= item.usmCdRecord.ngC5Count3}}</td>
              <td colspan="3" class="xl10920760" style="border-right:1.0pt solid black;        border-left:none">{{= item.usmCdRecord.ngC5Count4}}</td>
            </tr>
            <tr height="21" style="height:15.95pt">
              <td colspan="6" height="21" class="xl9720760"                style="border-right:.5pt solid black;        height:15.95pt;border-left:none">{{= ngC5Pct1}}</td>
              <td colspan="6" class="xl9920760" style="border-left:none">{{= ngC5Pct2}}</td>
              <td colspan="4" class="xl10920760">{{= ngC5Pct3}}</td>
              <td colspan="3" class="xl10920760" style="border-right:1.0pt solid black; border-left:none">{{= ngC5Pct4}}</td>
            </tr>
            <tr height="21" style="height:15.95pt">
              <td colspan="12" height="21" class="xl11120760" style="height:15.95pt;border-left:        none">{{= ngC5Total+'   PCS'}}</td>
              <td colspan="7" class="xl11320760" style="border-right:1.0pt solid black">{{= ngC5TotalPct}}</td>
            </tr>
            <!-- <tr height="21" style="height:15.95pt">
              <td height="21" class="xl7120760" style="height:15.95pt;border-top:none">GO</td>
              <td colspan="6" class="xl10120760" style="border-right:.5pt solid black;text-align:center;">{{= item.usmCdRecord.goWgCount1}}</td>
              <td colspan="6" class="xl10420760" style="border-left:none;text-align:center;">{{= item.usmCdRecord.goWgCount2}}</td>
              <td colspan="4" class="xl10520760" style="text-align:center;">{{= item.usmCdRecord.goWgCount3}}</td>
              <td colspan="3" class="xl10520760" style="border-right:1.0pt solid black;border-left:none;text-align:center;">{{= item.usmCdRecord.goWgCount4}}
              </td>
            </tr> -->
            <tr height="21" style="height:15.95pt">
              <td rowspan="3" height="63" class="xl7020760"     style="border-bottom:1.0pt solid black;        height:47.85pt;border-top: 1px solid black;">外观检查</td>
              <td colspan="6" class="xl9720760" style="border-right:.5pt solid black">{{= item.usmCdRecord.ngWgCount1}}</td>
              <td colspan="6" class="xl9920760" style="border-left:none">{{= item.usmCdRecord.ngWgCount2}}</td>
              <td colspan="4" class="xl10920760">{{= item.usmCdRecord.ngWgCount3}}</td>
              <td colspan="3" class="xl10920760" style="border-right:1.0pt solid black;        border-left:none">{{= item.usmCdRecord.ngWgCount4}} </td>
            </tr>
            <tr height="21" style="height:15.95pt">
              <td colspan="6" height="21" class="xl9720760" style="border-right:.5pt solid black; height:15.95pt">{{= ngWgPct1}}</td>
              <td colspan="6" class="xl9920760" style="border-left:none">{{=ngWgPct2}}</td>
              <td colspan="4" class="xl10920760">{{=ngWgPct3}}</td>
              <td colspan="3" class="xl10920760" style="border-right:1.0pt solid black;        border-left:none">{{=ngWgPct4}}</td>
            </tr>
            <tr height="21" style="height:15.95pt">
              <td colspan="12" height="21" class="xl11120760" style="height:15.95pt">{{=ngWgTotal + '   PCS'}}</td>
              <td colspan="7" class="xl11320760" style="border-right:1.0pt solid black">{{=ngWgTotalPct}}</td>
            </tr>
            <tr height="21" style="height:15.95pt">
              <td rowspan="2" height="42" class="xl8820760" width="72"
                style="border-bottom:.5pt solid black;height:31.9pt;width:54pt">机械不良</td>
              <td colspan="6" class="xl9020760" style="border-right:.5pt solid black">{{= item.usmCdRecord.ngJxCount1}}</td>
              <td colspan="6" class="xl9320760" style="border-left:none">{{= item.usmCdRecord.ngJxCount2}}</td>
              <td colspan="4" class="xl9420760">{{= item.usmCdRecord.ngJxCount3}}</td>
              <td colspan="3" class="xl9520760" style="border-right:1.0pt solid black">{{= item.usmCdRecord.ngJxCount4}}</td>
            </tr>
            <tr height="21" style="height:15.95pt">
              <td colspan="12" height="21" class="xl9720760" style="height:15.95pt">{{= ngJxTotal + '   PCS'}}</td>
              <td colspan="7" class="xl9920760" style="border-right:1.0pt solid black">{{= ngJxTotalPct}}</td>
            </tr>
            <tr height="21" style="height:15.95pt">
              <td height="21" class="xl7820760" width="72" style="height:15.95pt;border-top:none;width:54pt">作业员</td>
              <td colspan="6" class="xl7920760" style="border-right:.5pt solid black;border-left:none;color:red">
                <div style="display: flex; align-items: center; justify-content: center; width: 100%;">
                  <div style="width:50px;height:50px; border-radius: 50%; background-color: white; border: 2px solid red;display: flex; align-items: center; justify-content: center;">
                    {{= item.user1==null?'':item.user1.userFullName}}
                  </div>
                </div>
              </td>
              <td colspan="6" class="xl8220760" style="border-left:none;color:red">
                <div style="display: flex; align-items: center; justify-content: center; width: 100%;">
                  <div style="width:50px;height:50px; border-radius: 50%; background-color: white; border: 2px solid red;display: flex; align-items: center; justify-content: center;">
                    {{= item.user2==null?'':item.user2.userFullName}}
                  </div>
                </div>
              </td>
              <td colspan="4" class="xl8320760" style="color:red">
                <div style="display: flex; align-items: center; justify-content: center; width: 100%;">
                  <div style="width:50px;height:50px; border-radius: 50%; background-color: white; border: 2px solid red;display: flex; align-items: center; justify-content: center;">
                    {{= item.user3==null?'':item.user3.userFullName}}
                  </div>
                </div>
              </td>
              <td colspan="3" class="xl8020760" style="border-right:1.0pt solid black;color:red">
                <div style="display: flex; align-items: center; justify-content: center; width: 100%;">
                  <div style="width:50px;height:50px; border-radius: 50%; background-color: white; border: 2px solid red;display: flex; align-items: center; justify-content: center;">
                    {{= item.user4==null?'':item.user4.userFullName}}
                  </div>
                </div>
              </td>
            </tr>

          </table>
        </div>
      </div>
    </div>
    {{#  }) }}
  </script>

</body>

</html>